<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        function fun1() {
            console.log("单击了1");
        }
        
        function fun2() {
            console.log("单击了2");   
        }
        function fun3() {
            console.log("双击了");
        }
        function fun4() {
            console.log("鼠标悬停了");
        }
        function fun5() {
            console.log("鼠标移动了");
        }
        function fun6() {
            console.log("鼠标离开了");
        }
    </script>
</head>
<body>
    <input 
        type = "button";
        value = "按钮"
        onclick = "fun1(), fun2()"
        ondblclick = "fun3()"
    >
    <hr>
    <img src = "../img/test.png" onmouseover="fun4()" 
    onmousemove = "fun5()" onmouseleave="fun6()";

</body>
</html>